package com.cencat.user.vo;

import lombok.Data;
import io.swagger.v3.oas.annotations.media.Schema;
import java.time.LocalDateTime;

/**
 * 角色列表视图对象
 * @author cencat
 * @since 2024-01-01
 */
@Data
@Schema(description = "角色列表视图对象")
public class RoleListVO {

    @Schema(description = "角色ID", example = "1")
    private Long id;

    @Schema(description = "角色名称", example = "系统管理员")
    private String roleName;

    @Schema(description = "角色编码", example = "ADMIN")
    private String roleCode;

    @Schema(description = "角色描述", example = "系统管理员角色")
    private String description;

    @Schema(description = "角色状态（0-禁用，1-正常）", example = "1")
    private Integer status;

    @Schema(description = "角色类型（1-系统角色，2-业务角色）", example = "1")
    private Integer roleType;

    @Schema(description = "排序", example = "1")
    private Integer sortOrder;

    @Schema(description = "创建时间", example = "2024-01-01T10:00:00")
    private LocalDateTime createTime;

    @Schema(description = "创建人ID", example = "1")
    private Long createBy;
}